package org.example.infrastructure.repository.orm.redis.config.constant;

public class RedisCacheConstant {
    /**
     * 永久短链接默认缓存有效时间，默认一个月
     */
    public static final long DEFAULT_CACHE_VALID_TIME = 2626560000L;

    /**
     * 短链接跳转前缀 Key
     */
    public static final String SKIP_SHORT_LINK_KEY = "url-shortener:skip:";

    /**
     * 短链接跳转 锁 前缀 Key
     */
    public static final String LOCK_SKIP_SHORT_LINK_KEY = "url-shortener:lock:skip:";
    /**
     * 短链接跳转 空值 前缀 Key
     */

    public static final String SKIP_SHORT_LINK_NULL_KEY = "url-shortener:url-null:skip:";


    /**
     * 短链接统计判断是否新用户缓存标识
     */
    public static final String URL_SHORTENER_STATS_UV_KEY = "url-shortener:stats:uv:";

    /**
     * 短链接修改分组 ID 锁前缀 Key
     */
    public static final String LOCK_GID_UPDATE_KEY = "url-shortener:lock:update-gid:";

}
